import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";

// 全局项目重置样式
import "normalize.css";
import "@/assets/styles/common.less";
const app = createApp(App);

// 全局注册组件与自定义指令
import SealUI from "@/components/index";
app.use(SealUI);

import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(pinia);

app.use(router);

app.mount("#app");
